package com.amigo.online.provider.video.mongo.dao;

import java.util.List;

import org.bson.Document;

import com.amigo.online.provider.video.mongo.entity.VideoEntity;
import com.mongodb.BasicDBObject;
import com.mongodb.client.AggregateIterable;

public interface VideoDao {

    public void saveVideo(VideoEntity video);

    public Long updateVideo(VideoEntity video);

    public void deleteVideoById(Long id);

    public VideoEntity getVideoById(Long id);

    AggregateIterable<Document> findAroundVideo(String collectionVideo, Double[] point, int searchMaxdistance,
                                                BasicDBObject obQuery, List<BasicDBObject> pipeline);

    public void deleteVideoByIds(List<Long> ids);
}
